<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">
    <ui:composition template="/Modelos/Principal/modelo-principal.xhtml">
        <ui:define name="content">

            <p:toolbar>

                <p:toolbarGroup align="left">
                    <p:commandButton value="Salvar" icon="ui-icon-disk"/>
                    <separator/>
                    <p:commandButton value="Cancelar" icon="ui-icon-close"/>
                </p:toolbarGroup>

                <p:toolbarGroup align="right">
                    <p:commandButton value="Sair" action="principal" ajax="false" icon="ui-icon-circle-close"/>    
                </p:toolbarGroup>

            </p:toolbar>

            <p:panel header="Cadastro de Usuários">
                <p:growl showDetail="true"/>
                
                <div align="center">
                    <h:outputLabel value="Os campos com ( * ) são obrigatórios"/>
                </div>
                
                <p:panelGrid columns="2">
                    
                    <h:outputLabel value="* Login: " for="log"/>
                    <p:inputText id="log" style="width: 100px" required="true" requiredMessage="O campo login é obrigatório"/>
                    <h:outputLabel value="* Senha: " for="pass"/>
                    <p:inputText id="pass" style="width: 100px" required="true" requiredMessage="O campo senha é obrigatório"/>
                    <h:outputLabel value="* Departamento: " for="dpt"/>
                    <p:selectOneMenu id="dpt" style="width: 100px" required="true">
                        <f:selectItem itemLabel="" itemValue=""/>
                    </p:selectOneMenu>
                </p:panelGrid>

            </p:panel>
        </ui:define>

    </ui:composition>

</html>

